var t = require("../../A4730AC3A71FB5DFC21562C4223CA4D1.js");

Page({
    data: {
        orderId: 0,
        logisticData: null,
        logisticTraces: []
    },
    onLoad: function(t) {
        var i = this, a = t.orderId;
        this.setData({
            orderId: a
        }, function() {
            i.loadLogistic(a);
        });
    },
    loadLogistic: function(i) {
        var a = this;
        wx.showLoading({
            mask: !0
        }), t.post("/v2/order/product/logistic", {
            order_id: i
        }).then(function(t) {
            if (wx.hideLoading(), 1001 == t.data.code) {
                var i = t.data.response.data;
                a.setData({
                    logisticData: i,
                    logisticTraces: i.logistic_traces.reverse()
                });
            }
        }).catch(function() {
            wx.hideLoading();
        });
    }
});